package com.baizhi.chario;

import java.io.FileInputStream;
import java.io.IOException;

// 读取F 盘a.txt
public class FileInputStreamDemo {

    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("F:\\a.txt");
        int d;
        while((d=fis.read())!=-1){
            System.out.println((char)d);
        }

        fis.close();
    }
}
